CSS Display Property

The CSS display property is used to specify the display behavior of an HTML element. It determines how an element is rendered on the web page and how it interacts with other elements. The display property can take several values, each affecting the layout and visibility of the element in different ways.

Hello world -->block Property = it will take full width of the page


Im mahaveer -->inline Property = it will take only the required width and next element will come in same line


bye world -->inline-block Property = it will take width and height as we define
but behave like inline and font size will be same


How are you? -->span

Exercise 1

Hi

bye


Exercise 2


Exercise 3